package cn.edu.dlut.port.isp.repostitory;

import org.springframework.data.repository.CrudRepository;

import cn.edu.dlut.port.isp.bean.Berth_info;


// This will be AUTO IMPLEMENTED by Spring into a Bean called userRepository
// CRUD refers Create, Read, Update, Delete

public interface Berth_infoRepository extends CrudRepository<Berth_info, Long> {
	
/*//	@Query("select b.id,b.p_a_code,b.cargo_type,b.design_dep,b.maintain_dep,p.p_a_name from Berth_info b,Port_info p where b.p_a_code=p.p_a_code") 
	@Query("select new Berth_info_full(b.id,b.p_a_code,b.cargo_type,b.design_dep,b.maintain_dep,p.p_a_name) from Berth_info b,Port_info p where b.p_a_code=p.p_a_code")
	 public List<Berth_info_full> findAllBerth_infos(); */

}
